﻿<%@ Page Title="管理旅游攻略" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Wjtour.Web.Front.articlemanage" %>

<%@ Import Namespace="Wjtour.Domain" %>
<%@ Import Namespace="Wjtour.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript">
        $(document).ready(function () {
            var height = $('.inpageright').height(); // 通过这个数字来控制显示的子菜单
            var h = Math.max(325, height);
            $('.inpageleft').height(h);
        });

        function delfirm() {
            if (confirm("您确认要删除这篇文章吗？")) {
                return true;
            }
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="ipage indexpage">
        <!--左侧-->
        <div class="inpageleft">
            <div class="siderbox">
                <img src="css/images/title06.jpg" />
                <div class="hrs"></div>
                <div class="welcome">
                    <%=CurrentDate %><span class="weekstr"><%=CurrentDay %></span><br />
                    <%=CurrentMember.username %>，您好<br />
                        <a href="logout.aspx">退出登录</a><br />
                    <span class="welcomewords">欢迎登录吴江旅游网</span>

                </div>
            </div>
            <!--侧导航下方-->
            <br />
            <img src="css/images/line01.png" />
            <br />
            <div class="siderbox">
                <ul class="sidertitle">
                    <li><a href="memberinfoedit.aspx">
                        <img src="css/images/membersider01.png" /></a>
                    </li>
                    <li><a href="memberpassedit.aspx">
                        <img src="css/images/membersider02.png" /></a>
                    </li>
                    <li><a href="articlemanage.aspx">
                        <img src="css/images/membersider03.png" /></a>
                    </li>
                    <li><a href="photography.aspx">
                        <img src="css/images/membersider04.png" /></a>
                    </li>
                </ul>
            </div>

        </div>

        <!--右侧-->
        <div class="inpageright">
            <div class="path addbtnpath">
                <span>旅游攻略管理 <a href="articlenew.aspx">
                    <img src="css/images/btn05.png" border="0" /></a></span>
                当前位置：<a href="/">首页</a> &gt; 会员中心 &gt; 旅游攻略管理
            </div>
            <div class="content">
                <ul class="articlelist travelarticle">
                    <%if (data != null && data.Datas.Count > 0)
                      {
                          foreach (var item in data.Datas)
                          {
                    %>
                    <li>
                        <%if (!string.IsNullOrEmpty(item.img))
                          { %>
                        <img src="<%=item.img %>" />
                        <%}
                          else
                          { %>
                        <img src="css/images/tmp07.png" />
                        <%} %>
                        <div>
                            <h5><span class="validate">【<%=CovertAuditStatus(item.isaudit) %>】</span><a href="travelguideview.aspx?id=<%=item.id %>" target="_blank"><%=item.title %></a>&nbsp;&nbsp;<span class="goodnum">赞：<%=item.zan %></span></h5>
                            <span>发布时间：<%=item.addtime.Value.ToString("yyyy-MM-dd HH:mm:ss") %></span>
                            <p>
                                <%=Utility.CutString(Utility.StripHtml(item.content),90,true) %>
                                <%if (item.isaudit == 0 || item.isaudit == 1)
                                  { %>
                                &nbsp;<a href="articlenew.aspx?id=<%=item.id %>" target="_blank">[编辑]</a>
                                &nbsp;<a href="travelguideview.aspx?id=<%=item.id %>" target="_blank">[查看]</a>
                                &nbsp;<a href="articlemanage.aspx?id=<%=item.id %>&act=del" onclick="return delfirm()">[删除]</a>
                                <%} %>
                                <%if (item.isaudit == 2)
                                  { %>
                                &nbsp;<a href="travelguideview.aspx?id=<%=item.id %>" target="_blank">[查看]</a>
                                <%} %>
                            </p>
                        </div>
                    </li>
                    <%}
                      }%>
                </ul>
                <div class="clear"></div>
                <!-- 分页 -->
                <%=PagnationHtml %>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</asp:Content>
